package org.springframework.validation.executors;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.stereotype.Component;

/**
 * Annotates a class that implements RuleExecutor in order to provide
 * a name under which the class should be registered as a validation
 * rule executor. 
 * @author Clark Duplichien
 *
 */
@Component
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface ConfiguredRuleExecutor {
	
	public String name();

}
